home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global g_doll_state, g_help_state, g_option_state, g_quit_state, g_auto_state, doll_auto, doll_right, doll_left, doll_help, doll_option, doll_quit
- set newstate to the mouseCast
- if newstate = doll_right then
- if g_doll_state = 5 then
- center_to_right()
- end if
- if g_doll_state = 1 then
- left_to_center()
- center_to_right()
- end if
- set g_doll_state to 9
- end if
- if newstate = doll_left then
- if g_doll_state = 5 then
- center_to_left()
- end if
- if g_doll_state = 9 then
- right_to_center()
- center_to_left()
- end if
- set g_doll_state to 1
- end if
- if not ((newstate = doll_right) or (newstate = doll_left)) then
- if g_doll_state = 9 then
- right_to_center()
- end if
- if g_doll_state = 1 then
- left_to_center()
- end if
- set g_doll_state to 5
- end if
- if (newstate = doll_help) and (g_help_state = 4) then
- help_open()
- set g_help_state to 1
- end if
- if (newstate <> doll_help) and (g_help_state = 1) then
- help_close()
- set g_help_state to 4
- end if
- if (newstate = doll_option) and (g_option_state = 4) then
- option_open()
- set g_option_state to 1
- end if
- if (newstate <> doll_option) and (g_option_state = 1) then
- option_close()
- set g_option_state to 4
- end if
- if (newstate = doll_auto) and (g_auto_state = 4) then
- auto_open()
- set g_auto_state to 1
- end if
- if (newstate <> doll_auto) and (g_auto_state = 1) then
- auto_close()
- set g_auto_state to 4
- end if
- if (newstate = doll_quit) and (g_quit_state = 4) then
- quit_open()
- set g_quit_state to 1
- end if
- if (newstate <> doll_quit) and (g_quit_state = 1) then
- quit_close()
- set g_quit_state to 4
- end if
- go(the frame)
- end
-
- on help_open
- global Help3, Help2, Help1
- set the castNum of sprite 9 to Help3
- updateStage()
- set the castNum of sprite 9 to Help2
- updateStage()
- set the castNum of sprite 9 to Help1
- updateStage()
- end
-
- on help_close
- global Help4, Help3, Help2
- set the castNum of sprite 9 to Help2
- updateStage()
- set the castNum of sprite 9 to Help3
- updateStage()
- set the castNum of sprite 9 to Help4
- updateStage()
- end
-
- on auto_close
- global auto3, auto2, auto1
- set the castNum of sprite 7 to auto3
- updateStage()
- set the castNum of sprite 7 to auto2
- updateStage()
- set the castNum of sprite 7 to auto1
- updateStage()
- end
-
- on auto_open
- global auto4, auto3, auto2
- set the castNum of sprite 7 to auto2
- updateStage()
- set the castNum of sprite 7 to auto3
- updateStage()
- set the castNum of sprite 7 to auto4
- updateStage()
- end
-
- on quit_close
- global Quit3, Quit2, Quit1
- set the castNum of sprite 10 to Quit3
- updateStage()
- set the castNum of sprite 10 to Quit2
- updateStage()
- set the castNum of sprite 10 to Quit1
- updateStage()
- end
-
- on quit_open
- global Quit4, Quit3, Quit2
- set the castNum of sprite 10 to Quit2
- updateStage()
- set the castNum of sprite 10 to Quit3
- updateStage()
- set the castNum of sprite 10 to Quit4
- updateStage()
- end
-
- on option_close
- global Option3, Option2, Option1
- set the castNum of sprite 11 to Option3
- updateStage()
- set the castNum of sprite 11 to Option2
- updateStage()
- set the castNum of sprite 11 to Option1
- updateStage()
- end
-
- on option_open
- global Option4, Option3, Option2
- set the castNum of sprite 11 to Option2
- updateStage()
- set the castNum of sprite 11 to Option3
- updateStage()
- set the castNum of sprite 11 to Option4
- updateStage()
- end
-
- on center_to_left
- global Doll4, Doll3, Doll2, Doll1
- set the castNum of sprite 8 to Doll4
- updateStage()
- set the castNum of sprite 8 to Doll3
- updateStage()
- set the castNum of sprite 8 to Doll2
- updateStage()
- set the castNum of sprite 8 to Doll1
- updateStage()
- end
-
- on center_to_right
- global Doll9, Doll8, Doll7, Doll6
- set the castNum of sprite 8 to Doll6
- updateStage()
- set the castNum of sprite 8 to Doll7
- updateStage()
- set the castNum of sprite 8 to Doll8
- updateStage()
- set the castNum of sprite 8 to Doll9
- updateStage()
- end
-
- on right_to_center
- global Doll8, Doll7, Doll6, Doll5
- set the castNum of sprite 8 to Doll8
- updateStage()
- set the castNum of sprite 8 to Doll7
- updateStage()
- set the castNum of sprite 8 to Doll6
- updateStage()
- set the castNum of sprite 8 to Doll5
- updateStage()
- end
-
- on left_to_center
- global Doll5, Doll4, Doll3, Doll2
- set the castNum of sprite 8 to Doll2
- updateStage()
- set the castNum of sprite 8 to Doll3
- updateStage()
- set the castNum of sprite 8 to Doll4
- updateStage()
- set the castNum of sprite 8 to Doll5
- updateStage()
- end
-